package top.cluski.feieprint.domain.dto;

import cn.hutool.core.lang.Assert;
import lombok.Data;
import top.cluski.feieprint.framework.validate.Validatable;
import top.cluski.feieprint.entity.PrintSetting;

import java.util.List;

@Data
public class PrintSettingDTO implements Validatable {
    Integer printerId;
    List<PrintSetting> printSettingList;

    public void validate() {
        Assert.notNull(printerId, "printer id can not be null");
        Assert.notEmpty(printSettingList, "print setting list can not be empty");
    }
}
